<?php
	include_once "db.class.php";
	
	
	$Db = new Db();
	$Db->connect();
	$sql='select * from personne';
	$Db->query($sql);
	
	var_dump();
	$arr=$Db->fetchArray();
	echo '<table>';
	foreach($arr as $key=>$value)
	{
	echo '<tr>';
			echo '<td>';echo $value['Nom'];	echo '</td>';
		echo '<td>';echo $value['Prenom'];	echo '</td>';
		echo '<td>';echo $value['login'];	echo '</td>';
				echo '<td>';echo $value['MotPasse'];	echo '</td>';

	echo '</tr>';
	}
		echo '</table>';
	
	
	$Db->disconnect();
	
?>